var status = -1;
var selectionLog = [];

function action(e, c, b) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.updateInfoQuest(33128, "act1=350013000;act2=350024300");
            var d = cm.getNumberFromQuestInfo(33178, "r");
            if (d == 0) {
                cm.effect_NormalSpeechBalloon("明明从这里进来了啊……", 1, 0, 1, 4000, 0, 0, 0, 0, 4, 0, cm.getPlayer().getId())
            } else {
                if (d == 1) {
                    cm.effect_NormalSpeechBalloon("去其他房间看看吧!", 1, 0, 1, 4000, 0, 5559508)
                } else {
                    if (d == 2) {
                        cm.effect_NormalSpeechBalloon("去其他房间看看吧!", 1, 0, 1, 4000, 0, 5559508)
                    } else {
                        cm.effect_NormalSpeechBalloon("所有房间都确认完毕!到外面去看看吧. ", 1, 0, 1, 4000, 0, 0, 0, 0, 4, 0, cm.getPlayer().getId())
                    }
                }
            }
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};